package TransactionImplementation

import (
	"PaySalary/AbstractTransactions"
	"PaySalary/Model"
	"PaySalary/ModelImplementation"
)

type ChangeSalariedTransaction struct {
	AbstractTransactions.ChangeClassificationTransaction
	itsSalary float64
}

func (st *ChangeSalariedTransaction)NewChangeSalariedTransaction(empid int, salary float64)  {
	st.ChangeClassificationTransaction.NewChangeClassificationTransaction(empid)
	st.itsSalary = salary
}

func (st *ChangeSalariedTransaction) GetClassification() Model.PaymentClassification {
	return ModelImplementation.NewSalariedClassification(st.itsSalary)
}

func (st *ChangeSalariedTransaction) GetSchedule() Model.PaymentSchedule {
	return ModelImplementation.MonthlySchedule{}
}